import _Fetch from '@/server/Fetch'
import { API_POST_COURSE_INFO } from '@/api/college/get_course_detail_info'
import { API_POST_ADD_COMMENT } from '@/api/college/add_comment'

export async function course_detail_api(id: number) {
  return await _Fetch(API_POST_COURSE_INFO, {
    courseNameId: id,
  })
}
export async function add_commit_api(commentId: number, comment: string, isAnonymous: number, satisfaction: number, type: number) {
  return await _Fetch(API_POST_ADD_COMMENT, {
    commentId,
    comment,
    isAnonymous,
    satisfaction,
    type,
  })
}
